// 防抖函数
export function debounce(func, delay) {
   let timeout;
   return function(...args) {
	   clearTimeout(timeout);
	   timeout = setTimeout(() => func.apply(this, args), delay);
   };
}